class CreateTokens < ActiveRecord::Migration
  def self.up
    create_table :tokens do |t|
      t.column "user_id", :integer
      t.column "token_value", :string, :limit => 40
      t.column "token_type", :string, :default => "nonauth"
      t.column "created_at", :datetime
      t.column "expires_at", :datetime
    end
  end

  def self.down
    drop_table :tokens
  end
end
